Skip to content

fix(lab11): normalize line endings in binaryTreeConstructorTest#17

Open
Gravifer wants to merge 2 commits into
cs61bl:mainfrom
Gravifer:fix/lab11/ctor-test-eol
Open

fix(lab11): normalize line endings in binaryTreeConstructorTest#17
Gravifer wants to merge 2 commits into
cs61bl:mainfrom
Gravifer:fix/lab11/ctor-test-eol

Conversation

@Gravifer
Copy link
Copy Markdown

BinaryTree.print() respects the OS-defined newline convention (\r\n on Windows, \n on Unix).

This fix replaces \r\n with \n in the test output before comparison to ensure test passes regardless of platform.

Gravifer added 2 commits July 11, 2025 21:52
…ructorTest()` assertion

`BinaryTree.print()` respects OS defined newline, which should be normalized in the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant